.index {
  background: #f5f5f5;
  min-height: 100vh;
  
  .nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    height: 88rpx;
    padding: 0 30rpx;
    background: #fff;
    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
    
    .location {
      display: flex;
      align-items: center;
      height: 100%;
      
      .location-icon {
        width: 36rpx;
        height: 36rpx;
        margin-right: 8rpx;
      }
      
      Text {
        font-size: 28rpx;
        line-height: 36rpx;
      }
    }
    
    .search-input {
      flex: 1;
      height: 64rpx;
      line-height: 64rpx;
      margin: 0 24rpx;
    }
    
    .nav-right {
      display: flex;
      align-items: center;
      height: 100%;
      
      .service, .manager {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0 10rpx;
        
        .service-icon, .manager-icon {
          width: 36rpx;
          height: 36rpx;
          margin-bottom: 4rpx;
        }
        
        Text {
          font-size: 24rpx;
          line-height: 1;
        }
      }
    }
  }

  .menu-section {
    margin: 108rpx 20rpx 10rpx; 
    padding: 30rpx 20rpx;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 5rpx 5rpx rgba(0, 0, 0, 0.1); 
    position: relative;
    z-index: 1;
    border-radius: 20rpx;  
    // transform: translateY(-10rpx); 
    
    .menu-item {
      width: 20%;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 20rpx;
      
      .menu-icon {
        width: 80rpx;
        height: 80rpx;
        border-radius: 50%;
        border: 1px solid #F40;
        margin-bottom: 10rpx;
      }
      
      .menu-text {
        font-size: 24rpx;
        color: #333;
        line-height: 1.2;
      }
    }
  }

  .ad-banner {
    margin: 20rpx 20rpx;
    padding: 20rpx;
    background: #fff;
    border-radius: 20rpx;  
    box-shadow: 0 5rpx 5rpx rgba(0, 0, 0, 0.1);  
    
    .ad-image {
      width: 100%;
      height: 200rpx;
      border-radius: 16rpx;
    }
  }

  .tab-section {
    margin: 20rpx 20rpx;
    padding: 20rpx;
    background: #fff;
    border-radius: 20rpx;
    box-shadow: 0 12rpx 40rpx rgba(0, 0, 0, 0.1);
    
    .tab-list {
      display: flex;
      justify-content: space-around;
      align-items: center;
      
      .tab-item {
        position: relative;
        padding: 20rpx 0;
        font-size: 28rpx;
        color: #666;
        
        &.active {
          color: #333;
          font-weight: 500;
          
          &::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 40rpx;
            height: 6rpx;
            background: #f40;
            border-radius: 3rpx;
          }
        }
      }
    }
  }

  .product-list {
    margin-top: 20rpx;  // 调整商品列表的上边距
    padding: 20rpx;
    
    .product-item {
      display: flex;
      align-items: center;
      padding: 20rpx;
      background: #fff;
      margin-bottom: 20rpx;
      border-radius: 16rpx;
      
      .product-image {
        width: 160rpx;
        height: 160rpx;
        border-radius: 50%;
        margin-right: 20rpx;
        border: 1px solid #F40;
      }
      
      .product-info {
        flex: 1;
        
        .product-name {
          font-size: 28rpx;
          color: #333;
          margin-bottom: 10rpx;
        }
        
        .price-action {
          display: flex;
          align-items: center;
          justify-content: space-between;
          
          .product-price {
            font-size: 32rpx;
            color: #ff4d4f;
            font-weight: bold;
          }
          
          .add-cart {
            width: 44rpx;
            height: 44rpx;
            background: #F40;
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36rpx;
            font-weight: bold;
            box-shadow: 0 4rpx 8rpx rgba(255, 68, 0, 0.2);
          }
        }
      }
    }
  }
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16rpx 24rpx;
  background: #fff;
  height: 88rpx;
  
  .location {
    display: flex;
    align-items: center;
    width: 140rpx;
    
    .location-icon {
      width: 36rpx;
      height: 36rpx;
      margin-right: 8rpx;
    }
    
    Text {
      font-size: 28rpx;
      line-height: 36rpx;
    }
  }
  
  .search-input {
    flex: 1;
    height: 64rpx;
    line-height: 64rpx;
    background: #f5f5f5;
    border-radius: 32rpx;
    padding: 0 30rpx;
    margin: 0 24rpx;
    font-size: 28rpx;
  }
  
  .nav-right {
    display: flex;
    align-items: center;
    width: 180rpx;
    
    .service, .manager {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      
      .service-icon, .manager-icon {
        width: 36rpx;
        height: 36rpx;
        margin-bottom: 4rpx;
      }
      
      Text {
        font-size: 24rpx;
        line-height: 28rpx;
      }
    }
  }
}